package com.zkool.train.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by zhaokui on 2019/8/11.
 */
@Controller
public class IndexController {

    @Value("${amap.webapi}")
    private String amapWebApi;

    @RequestMapping("/")
    public String greeting(ModelMap map) {
        String jreVersion = System.getProperty("java.specification.version");
        map.addAttribute("jreVersion", "v" + jreVersion);
        map.addAttribute("amapWebApi", amapWebApi);
        return "index";
    }




}
